using Newtonsoft.Json;
/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "Ogstatistics",TableName = "Ogstatistics")]
    public partial class Ogstatistics:BaseEntity
    {
        /// <summary>
       ///编号
       /// </summary>
       [Key]
       [Display(Name ="编号")]
       [JsonIgnore]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Tsid { get; set; }

       /// <summary>
       ///外协编号
       /// </summary>
       [Display(Name ="外协编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string outsourcing_number { get; set; }

       /// <summary>
       ///生产计划
       /// </summary>
       [Display(Name ="生产计划")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string production_plan { get; set; }

       /// <summary>
       ///外协单位名称
       /// </summary>
       [Display(Name ="外协单位名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string outsourcing_unit_name { get; set; }

       /// <summary>
       ///人民币总金额
       /// </summary>
       [Display(Name ="人民币总金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? rmb_total_amount { get; set; }

       /// <summary>
       ///币别
       /// </summary>
       [Display(Name ="币别")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string currency_type { get; set; }

       /// <summary>
       ///原币总金额
       /// </summary>
       [Display(Name ="原币总金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? original_currency_total_amount { get; set; }

       /// <summary>
       ///预计交期
       /// </summary>
       [Display(Name ="预计交期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? expected_delivery_date { get; set; }

       /// <summary>
       ///剩余天数
       /// </summary>
       [Display(Name ="剩余天数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? remaining_days { get; set; }

       /// <summary>
       ///逾期天数
       /// </summary>
       [Display(Name ="逾期天数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? overdue_days { get; set; }

       /// <summary>
       ///收货状态
       /// </summary>
       [Display(Name ="收货状态")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string receipt_status { get; set; }

       /// <summary>
       ///收货人
       /// </summary>
       [Display(Name ="收货人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string receiver { get; set; }

       /// <summary>
       ///收货时间
       /// </summary>
       [Display(Name ="收货时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? receipt_time { get; set; }

       /// <summary>
       ///结算状态
       /// </summary>
       [Display(Name ="结算状态")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string settlement_status { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? creation_time { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string remarks { get; set; }

       
    }
}
